WooCommerce\PayPalCommerce\Button\Assets\SmartButton D

Total Complexity 292
Dependencies 45
Dependents 2
Total lines 1,463
Lines of code 767
Logical lines of code 501
Comment lines 606
Methods 59
Properties 27

Methods 59

Method Rating Maintainability Complexity Lines of code
url_params()
C
39 25 50
message_values()
B
38 23 57
render_message_wrapper_registrar()
B
40 23 51
render_button_wrapper_registrar()
B
44 17 41
should_load_messages()
A
48 16 31
script_data()
A
40 14 36
render_dcc_wrapper()
A
49 12 25
should_load_buttons()
A
54 11 20
page_type_attribute()
A
54 10 22
get_vaulted_paypal_email()
S
53 7 23
render_wrapper()
S
50 6 32
message_renderer()
S
56 6 16
has_subscriptions()
S
59 6 15
normalize_style()
S
64 6 9
components()
S
59 5 14
product_filter_context_data()
S
61 5 12
style_for_context()
S
59 5 11
should_load_ppcp_script()
S
67 5 7
sanitize_woocommerce_filters()
S
59 4 15
can_save_vault_token()
S
65 5 9
normalize_style_value()
S
66 4 9
button_renderer()
S
58 3 15
product_supports_payment()
S
65 4 8
intent()
S
65 4 8
render_after_block()
S
61 3 13
dcc_renderer()
S
62 3 11
has_in_stock_variation()
S
67 3 8
get_3ds_contingency()
S
66 3 9
is_button_disabled()
S
65 3 9
payerData()
S
68 3 7
normalize_height()
S
66 3 10
__construct()
S
50 1 28
pay_now_script_data()
S
60 2 12
get_style_value()
S
71 2 6
location_to_hook()
S
69 2 8
can_render_dcc()
S
76 2 3
get_order_pay_id()
S
68 2 7
enqueue()
S
65 2 8
paypal_subscriptions_enabled()
S
67 2 8
get_payment_tokens()
S
71 2 6
is_pay_later_messaging_enabled_for_location()
S
78 2 3
is_pay_later_button_enabled_for_location()
S
78 2 3
is_pay_later_filter_enabled_for_location()
S
69 2 6
need_shipping()
S
76 2 4
attributes()
S
67 2 8
style_for_apm()
S
76 2 3
is_cart_price_total_zero()
S
78 2 3
bn_code_for_context()
S
74 2 4
user_has_wc_card_payment_tokens()
S
69 2 7
single_product_renderer_hook()
S
79 1 3
mini_cart_button_renderer_hook()
S
79 1 3
proceed_to_checkout_button_renderer_hook()
S
79 1 3
messages_renderer_block()
S
68 1 6
messages_renderer_hook()
S
68 1 6
return_3ds_contingency()
S
79 1 3
pay_order_renderer_hook()
S
79 1 3
checkout_dcc_button_renderer_hook()
S
79 1 3
checkout_button_renderer_hook()
S
79 1 3
bn_codes()
S
74 1 4